﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Core.Xml.Ogc.Ows
{
    class RangeType : IXmlType
    {
        public ValueType MinimumValue { get; set; }
        public ValueType MaximumValue { get; set; }
        public ValueType Spacing { get; set; }

        public XElement CreateXElement(XName elementName)
        {
            XElement range = new XElement(elementName);
            
            range.Add(MinimumValue.CreateXElement(Namespaces.OWS + "MinimumValue"));
            range.Add(MaximumValue.CreateXElement(Namespaces.OWS + "MaximumValue"));
            range.Add(Spacing.CreateXElement(Namespaces.OWS + "Spacing"));

            return range;
        }
    }
}
